package com.atguigu.yygh.shop.service;

import com.atguigu.yygh.model.shop.Shop;
import com.atguigu.yygh.vo.shop.ShopQueryVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface ShopService {

    //上传店铺接口
    void save(Map<String, Object> paramMap);

    //实现根据店铺编号查询
    Shop getByShopCode(String shopcode);

    //店铺列表(条件查询分页)
    Page<Shop> selectShopPage(Integer page, Integer limit, ShopQueryVo shopQueryVo);

    //更新店铺上线状态
    void updateStatus(String id, Integer status);

    //店铺详情信息
    Map<String, Object> getShopById(String id);

    //获取店铺名称
    String getShopName(String shopcode);

    //根据店铺名称查询
    List<Shop> findByShopName(String shopname);

    //根据店铺编号获取店铺预约挂号详情
    Map<String, Object> item(String shopcode);
    
}